package com.autcar.training.service;

import com.autcar.training.entity.Customer;

import java.util.List;

/**
 * @ProjectName: training
 * @Package: com.autcar.training.service
 * @ClassName: CustomerService
 * @Author: YHHHH
 * @Description:
 * @Date: 2020/8/27 21:59
 * @Version: 1.0
 */
public interface CustomerService {

    //增加一个客户
    int addCustomer(Customer customer);

    //根据id删除一个客户
    int deleteCustomer(Integer id);

    //更新客户
    int updateCustomer(Customer customer);

    //查询所有客户
    List<Customer> findAllCustomer();

    //根据ID查询客户
    Customer selectById(Integer id);


    //根据客户名字模糊查询用户
    List<Customer> selectByName(String name);

}
